<%= render :partial => "/map/map_show_fncs" %>
<h1 class="library_title" >Set Ecase Location</h1>
<div class="horizontal_line" ></div>

<%= form_remote_tag( 
        :url => {:action => "save_region" }, 
        :html => {:id=>"region_form"}
        ) %>
      <p>
    <input type="hidden" name="region[ecase_id]" value="<%=@ecase.id%>" />
    <%= render :partial => "/map/region_form" %>
    </p>
<%= end_form_tag%>   
<div id="map_container" onmouseup="setMouseMoveMode('waiting')">
    <div id="gmap" class="edit_map">
        <%= @map.to_html %>
        <%= render :partial => "/map/add_rectangle_to_onload" %>
    </div>
</div>
<%= render :partial => "/map/map_area_selection_for_add" %>
<script type="text/javascript">
/* <![CDATA[ */ 
$('map_area_selection').show();
/* ]]> */
</script>